<!--
*Author：COCO
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/new_qualitytest/inboundtest/InspectionDetail.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/new_qualitytest/inboundtest/InspectionDetail.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'InspectionDetailID',
                footer: "Foots",
                cnName: '到货检验明细表',
                name: 'inboundtest/InspectionDetail',
                url: "/InspectionDetail/",
                sortName: "CreateDate"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'InspectionDetailID',title:'InspectionDetailID',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ModifyID',title:'ModifyID',type:'int',width:80,hidden:true,align:'left'},
                       {field:'CreateDate',title:'CreateDate',type:'datetime',width:150,align:'left',sort:true},
                       {field:'Creator',title:'Creator',type:'string',width:130,align:'left'},
                       {field:'CreateID',title:'CreateID',type:'int',width:80,hidden:true,align:'left'},
                       {field:'InspectionDetailRemark',title:'InspectionDetailRemark',type:'string',width:110,align:'left'},
                       {field:'ReturnQuantity',title:'ReturnQuantity',type:'int',width:80,require:true,align:'left'},
                       {field:'StockableQuantity',title:'StockableQuantity',type:'int',width:80,require:true,align:'left'},
                       {field:'QualifiedQuantity',title:'QualifiedQuantity',type:'int',width:80,require:true,align:'left'},
                       {field:'Modifier',title:'Modifier',type:'string',width:130,align:'left'},
                       {field:'InspectedQuantity',title:'InspectedQuantity',type:'int',width:80,require:true,align:'left'},
                       {field:'InspectionType',title:'InspectionType',type:'string',width:110,require:true,align:'left'},
                       {field:'PurchaseQuantity',title:'PurchaseQuantity',type:'int',width:80,require:true,align:'left'},
                       {field:'InspectionBrand',title:'InspectionBrand',type:'string',width:110,align:'left'},
                       {field:'InspectionUnit',title:'InspectionUnit',type:'string',width:110,align:'left'},
                       {field:'InspectionSpecification',title:'InspectionSpecification',type:'string',width:110,align:'left'},
                       {field:'ItemName',title:'ItemName',type:'string',width:110,require:true,align:'left'},
                       {field:'ItemCode',title:'ItemCode',type:'string',width:110,require:true,align:'left'},
                       {field:'InspectionOrderID',title:'InspectionOrderID',type:'guid',width:110,require:true,align:'left'},
                       {field:'ReceivedQuantity',title:'ReceivedQuantity',type:'int',width:80,require:true,align:'left'},
                       {field:'ModifyDate',title:'ModifyDate',type:'datetime',width:150,align:'left',sort:true}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
